﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Jillzhang.Wcf.HostJIT.Dispatcher
{
    class Program
    {
        static void Main(string[] args)
        {
            using (ServiceHost host = new ServiceHost(typeof(Dispatcher)))
            {
                host.Opened += new EventHandler(delegate(object sender, EventArgs arg)
                {
                    Console.WriteLine("dispatcher service is opened!");
                });
                host.Open();
                Console.Read();
            }
        }
    }
}
